package com.jzo2o.customer.controller.open;

import com.jzo2o.common.constants.UserType;
import com.jzo2o.common.model.Result;
import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.request.LoginForCustomerReqDTO;
import com.jzo2o.customer.model.dto.request.LoginForWorkReqDTO;
import com.jzo2o.customer.model.dto.response.LoginResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import com.jzo2o.customer.service.ILoginService;
import com.jzo2o.customer.service.impl.AgencyCertificationServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author SCPGHOST
 */
@RestController("openRegisterController")
@RequestMapping("/open/serve-provider")
@Api(tags = "白名单接口 - 机构注册接口")
public class RegisterController {

    @Resource
    private IAgencyCertificationService agencyCertificationServiceImpl;

    @PostMapping("/institution/register")
    @ApiOperation("机构注册接口")
    public Result<Void> loginForWorker(@RequestBody InstitutionRegisterReqDTO institutionRegisterReqDTO) {
        LoginResDTO loginResDTO = agencyCertificationServiceImpl.institutionRegister(institutionRegisterReqDTO);
        return Result.ok();
    }



}
